<?php
	$this->title('View Medications');
?>
<h2>Medications</h2>
<span style="margin: 0 0 1em 2.75em;"><?=$this->html->link('add New', array('Medications::add')); ?></span>
<ul>
    <?php foreach ($medications as $medication) { ?>
        <li style=" list-style-type: none;">
        	<span style="width: 40px;"><?=$medication->Name; ?></span>
        	<span style="width: 40px; margin-left: 20px;"><?=$this->html->link('Edit', array('Medications::edit', 'args' => $medication->id)); ?></span>
        </li>
    <?php } ?>
</ul>